﻿//// -----------------------------------------------------------------------
//// <copyright file="SagaPattern.cs" company="">
//// TODO: Update copyright text.
//// </copyright>
//// -----------------------------------------------------------------------

//namespace Dhgms.TplHelper.Controller.JobSequence
//{
//    using System;
//    using System.Collections.Generic;
//    using System.Linq;
//    using System.Text;

//    /// <summary>
//    /// Saga Pattern Job Sequence
//    /// </summary>
//    /// <typeparam name="TTaskToExecute"></typeparam>
//    /// <typeparam name="TTaskOnSuccess"></typeparam>
//    /// <typeparam name="TTaskOnFailure"></typeparam>
//    public class SagaPattern<TTaskToExecute, TTaskOnSuccess, TTaskOnFailure, TTaskToExecuteInputClass>
//        where TTaskToExecute : Task.Base<TTaskToExecuteInputClass, TTaskToExecuteResultClass>
//        where TTaskOnSuccess : Task.Base<TTaskToExecuteResultClass>
//        where TTaskOnFailure : Task.Base<SagaPatternFailureResult<TTaskToExecuteInputClass>>
//        where TTaskToExecuteInputClass : new()
//    {
//        Type TaskToExecute
//        {
//            get
//            {
//                return typeof(TTaskToExecute);
//            }
//        }

//        Type TaskOnSuccess
//        {
//            get
//            {
//                return typeof(TTaskOnSuccess);
//            }
//        }

//        Type TaskOnFailure
//        {
//            get
//            {
//                return typeof(TTaskOnFailure);
//            }
//        }
//    }
//}
